import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object5.dart';

InlineObject5 $InlineObject5FromJson(Map<String, dynamic> json) {
  final InlineObject5 inlineObject5 = InlineObject5();
  final List<int>? file = (json['file'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (file != null) {
    inlineObject5.file = file;
  }
  final String? deviceId = jsonConvert.convert<String>(json['deviceId']);
  if (deviceId != null) {
    inlineObject5.deviceId = deviceId;
  }
  final String? lang = jsonConvert.convert<String>(json['lang']);
  if (lang != null) {
    inlineObject5.lang = lang;
  }
  return inlineObject5;
}

Map<String, dynamic> $InlineObject5ToJson(InlineObject5 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['file'] = entity.file;
  data['deviceId'] = entity.deviceId;
  data['lang'] = entity.lang;
  return data;
}

extension InlineObject5Extension on InlineObject5 {
  InlineObject5 copyWith({
    List<int>? file,
    String? deviceId,
    String? lang,
  }) {
    return InlineObject5()
      ..file = file ?? this.file
      ..deviceId = deviceId ?? this.deviceId
      ..lang = lang ?? this.lang;
  }
}